Including CSS in HTML
CSS (Cascading Style Sheets) can be included in HTML documents in several ways. Each method has its use cases and affects how styles are applied and maintained.
Inline CSS: Apply styles directly to an HTML element using the style attribute.
Internal CSS: Define styles within a <style> element inside the <head> section of the HTML document.
External CSS: Link to an external .css file using the <link> element with rel="stylesheet".
In short: Use inline CSS for quick, one-off styles, internal CSS for page-specific styles, and external CSS for reusable styles across multiple pages.